﻿// WebContext.cs
//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Web {

    /// <summary>
    /// An HttpApplication providing additional services to the Web application, for
    /// example, the ability to dynamically customize the HTTP pipeline.
    /// </summary>
    public abstract class WebContext : HttpApplication {

        /// <summary>
        /// Raised when an HttpApplication instance is created. The sender
        /// of the event is the HttpApplication instance.
        /// </summary>
        public static event EventHandler Initialized;

        /// <internalonly />
        public override void Init() {
            base.Init();

            EventHandler initializedHandler = Initialized;
            if (initializedHandler != null) {
                initializedHandler(this, EventArgs.Empty);
            }
        }
    }
}
